package com.kaishengit.pojo;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;
@Entity
@Table(name="t_imtype")
//@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class ImType {
	private String imtypeid;
	private String imtype;
	private List<Im> imList;
	
	@Id
	@GenericGenerator(name="pk",strategy="uuid")
	@GeneratedValue(generator="pk")
	public String getImtypeid() {
		return imtypeid;
	}
	
	public void setImtypeid(String imtypeid) {
		this.imtypeid = imtypeid;
	}
	public String getImtype() {
		return imtype;
	}
	public void setImtype(String imtype) {
		this.imtype = imtype;
	}
	
	@OneToMany(mappedBy="imtype")
	public List<Im> getImList() {
		return imList;
	}
	public void setImList(List<Im> imList) {
		this.imList = imList;
	}
	

}
